package com.itqf.service;

import com.itqf.pojo.Address;
import com.itqf.vo.R;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * projectName: gpshop
 *
 * @author: 赵伟风
 * time: 2021/7/22 10:25
 * description:
 */
public interface AddressService {


    /**
     * 地址保存业务
     * @param map
     * @return
     */
    R saveAddress(Map<String, String[]> map) throws InvocationTargetException, IllegalAccessException, SQLException;

    /**
     * 根据用户id地址
     * @param getuId
     * @return
     */
    List<Address> findAll(int getuId) throws SQLException;

    /**
     * 设置默认地址
     * @param getuId
     * @param aId
     * @return
     */
    R setDefualt(int getuId, String aId) throws SQLException;
}
